<% form_for(@project) do |f| %>
  <%= f.error_messages %>
  <i>* = campo requerido</i>
 <table>
  <tr>
    <td class="inColumn">
      <%= f.label :name,"Nombre del proyecto * " %>
    </td>
    <td>
      <%= f.text_field :name %>
    </td>
  </tr>
  <tr>
    <td class="inColumn">
      <%= f.label :description, "Descripción * " %>
    </td>
    <td>
      <%= f.text_area :description,:cols=>35,:rows=>3 %>
    </td>
  </tr>
  <tr>
    <td class="inColumn">
    <%= f.label :user_id,"Lider del proyecto * " %>
    </td>
    <td>
      <%=  select_users_project_leader %>
    </td>
  </tr>
  <tr>
    <td class="inColumn">
      <%= f.label :status, "Estado * " %>
    </td>
    <td>
                <select name="project[status]"   >
                  <%if (!@project.status.nil?)%>
                    <option value="<%= @project.status %>" >
                        <%= @project.status %>
                    </option>
                 <%end%>
                    <option value="Idea">
                            Idea
                    </option>
                    <option value="Rechazado">
                        Rechazado
                    </option>
                    <option value="Aprobado">
                        Aprobado
                    </option>
                    <option value="Requerido">
                        Requerido
                    </option>
                    <option value="Concluido">
                        Concluido
                    </option>
                    <option value="En planeacion">
                        En planeacion
                    </option>
                    <option value="En espera">
                        En espera
                    </option>
                    <option value="Cancelado">
                        Cancelado
                    </option>
                </select>
    </td>
  </tr>
  <tr>
    <td class="inColumn">
    <%= f.label :startDate ,"Fecha planeada de inicio "%>
    </td>
    <td>
		<%= calendar_date_select_tag 'project[startDate]',@project.startDate,
                :popup => 'force',
		:year_range => 1.years.ago..10.years.from_now,
		:size => 10
		%>
    </td>
  </tr>
  <tr>
    <td class="inColumn">
    <%= f.label :endDate, "Fecha planeada de término" %>
    </td>
    <td>
                <%= calendar_date_select_tag 'project[endDate]', @project.endDate ,
                :popup => 'force',
		:year_range => 1.years.ago..10.years.from_now,
		:size => 10
		%>
    </td>
  </tr>
 </table>
<br/><br/>
  <%= f.submit 'Guardar' %>
  <%= f.submit "Cancelar" %>
<% end %>